package wechat.service;

import com.alibaba.fastjson.JSONObject;

import wechat.resources.InstanceResource;


public interface UserService {
	
	/**
	 * 创建成员
	 * @param instanceResource
	 * @param jsonParam
	 * @return
	 * @throws Exception
	 */
	public String createUser(InstanceResource instanceResource,JSONObject jsonParam) throws Exception;
	/**
	 * 更新成员
	 * @param instanceResource
	 * @param jsonParam
	 * @return
	 * @throws Exception
	 */
	public String updateUser(InstanceResource instanceResource,JSONObject jsonParam) throws Exception;
	/**
	 * 删除成员
	 * @param instanceResource
	 * @param userid
	 * @return
	 * @throws Exception
	 */
	public String deleteUser(InstanceResource instanceResource,String userid) throws Exception;
	/**
	 * 批量删除成员
	 * @param instanceResource
	 * @param jsonParam
	 * @return
	 * @throws Exception
	 */
	public String batchdeleteUser(InstanceResource instanceResource,JSONObject jsonParam) throws Exception;
	/**
	 * 获取成员
	 * @param instanceResource
	 * @param userid
	 * @return
	 * @throws Exception
	 */
	public String getUser(InstanceResource instanceResource,String userid) throws Exception;
	/**
	 * 获取部门成员
	 * @param instanceResource
	 * @param department_id
	 * @param fetch_child
	 * @param status
	 * @return
	 * @throws Exception
	 */
	public String simplelistUser(InstanceResource instanceResource,String department_id,String fetch_child,String status) throws Exception;
	/**
	 * 获取部门成员(详情)
	 * @param instanceResource
	 * @param department_id
	 * @param fetch_child
	 * @param status
	 * @return
	 * @throws Exception
	 */
	public String listUser(InstanceResource instanceResource,String department_id,String fetch_child,String status) throws Exception;
}
